<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>defaulttoolbar.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
  </script>

  <script src="static/js/doc.js">
  </script>

  <meta charset="utf8">
</head>

<body onload="prettyPrint()">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
       <span class="fn">defaulttoolbar.js</span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    Factory functions for creating a default editing toolbar.
  </div>
  

        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="../demos/editor/editor.html">Demo</a></li>
            <li><a href="closure_goog_ui_editor_defaulttoolbar.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
          </ol>
        </div>
</div>

<h2 class="g-first">File Location</h2>
  <div class="g-section g-tpl-20-80">
    <div class="g-unit g-first">
      <div class="g-c-cell code-label">ui/editor/defaulttoolbar.js</div>
    </div>
  </div>
<hr/>


   
<br/>

  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>


  <h2>Global Functions</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.addDefaultFontSizes"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">addDefaultFontSizes<span class="args">(<span class="arg">button</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Initializes the given font size menu button by adding default font sizes to
it.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">button</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Select.html">goog.ui.Select</a></span></div>
        <div class="entryOverview">Font size menu button.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line197">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.addDefaultFonts"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">addDefaultFonts<span class="args">(<span class="arg">button</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Initializes the given font menu button by adding default fonts to the menu.
If goog.ui.editor.DefaultToolbar.setLocale was called to specify a locale
for which locale-specific default fonts exist, those are added before
common fonts.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">button</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Select.html">goog.ui.Select</a></span></div>
        <div class="entryOverview">Font menu button.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line141">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.addDefaultFormatOptions"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">addDefaultFormatOptions<span class="args">(<span class="arg">button</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Initializes the given &quot;Format block&quot; menu button by adding default format
options to the menu.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">button</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Select.html">goog.ui.Select</a></span></div>
        <div class="entryOverview">&quot;Format block&quot; menu button.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line254">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.backgroundColorFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">backgroundColorFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button&#39;s caption element. Use to create
a font background color button.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Button ID; must equal a {@link goog.editor.Command} for built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <div class="fullType"><span class="type">goog.ui.ControlContent</span></div>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">CSS class name(s) to apply to the caption element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <div class="fullType"><span class="type"><a href="class_goog_ui_ColorMenuButtonRenderer.html">goog.ui.ColorMenuButtonRenderer</a></span></div>
        <div class="entryOverview">Button renderer; defaults to {@link goog.ui.ToolbarColorMenuButtonRenderer} if unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <div class="fullType"><span class="type"><a href="class_goog_dom_DomHelper.html">goog.dom.DomHelper</a></span></div>
        <div class="entryOverview">DOM helper, used for DOM creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line625">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.colorUpdateFromValue_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">colorUpdateFromValue_<span class="args">(<span class="arg">button</span>,&nbsp;<span class="arg">value</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Function to update the state of a color menu button.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">button</span>
        : <div class="fullType"><span class="type"><a href="class_goog_ui_ToolbarColorMenuButton.html">goog.ui.ToolbarColorMenuButton</a></span></div>
        <div class="entryOverview">The button to which the color menu is attached.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">value</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span></div>
        <div class="entryOverview">Color value to update to.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line557">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.fontColorFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">fontColorFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button&#39;s caption element. Use to create
a font color button.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Button ID; must equal a {@link goog.editor.Command} for built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <div class="fullType"><span class="type">goog.ui.ControlContent</span></div>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">CSS class name(s) to apply to the caption element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <div class="fullType"><span class="type"><a href="class_goog_ui_ColorMenuButtonRenderer.html">goog.ui.ColorMenuButtonRenderer</a></span></div>
        <div class="entryOverview">Button renderer; defaults to {@link goog.ui.ToolbarColorMenuButtonRenderer} if unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <div class="fullType"><span class="type"><a href="class_goog_dom_DomHelper.html">goog.dom.DomHelper</a></span></div>
        <div class="entryOverview">DOM helper, used for DOM creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line595">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.fontFaceFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">fontFaceFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button&#39;s caption element.  Used to create
a font face button, filled with default fonts.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Button ID; must equal a {@link goog.editor.Command} for built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <div class="fullType"><span class="type">goog.ui.ControlContent</span></div>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">CSS class name(s) to apply to the caption element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <div class="fullType"><span class="type"><a href="class_goog_ui_MenuButtonRenderer.html">goog.ui.MenuButtonRenderer</a></span></div>
        <div class="entryOverview">Button renderer; defaults to {@link goog.ui.ToolbarMenuButtonRenderer} if unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <div class="fullType"><span class="type"><a href="class_goog_dom_DomHelper.html">goog.dom.DomHelper</a></span></div>
        <div class="entryOverview">DOM helper, used for DOM creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line479">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.fontSizeFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">fontSizeFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button&#39;s caption element. Use to create a
font size button, filled with default font sizes.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Button ID; must equal a {@link goog.editor.Command} for built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <div class="fullType"><span class="type">goog.ui.ControlContent</span></div>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">CSS class name(s) to apply to the caption element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <div class="fullType"><span class="type"><a href="class_goog_ui_MenuButtonRenderer.html">goog.ui.MenuButtonRenderer</a></span></div>
        <div class="entryOverview">Button renderer; defaults to {@link goog.ui.ToolbarMebuButtonRenderer} if unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <div class="fullType"><span class="type"><a href="class_goog_dom_DomHelper.html">goog.dom.DomHelper</a></span></div>
        <div class="entryOverview">DOM helper, used for DOM creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line528">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.formatBlockFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">formatBlockFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button&#39;s caption element. Use to create
the format menu, prefilled with default formats.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Button ID; must equal a {@link goog.editor.Command} for built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <div class="fullType"><span class="type">goog.ui.ControlContent</span></div>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">CSS class name(s) to apply to the caption element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <div class="fullType"><span class="type"><a href="class_goog_ui_MenuButtonRenderer.html">goog.ui.MenuButtonRenderer</a></span></div>
        <div class="entryOverview">Button renderer; defaults to {@link goog.ui.ToolbarMenuButtonRenderer} if unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <div class="fullType"><span class="type"><a href="class_goog_dom_DomHelper.html">goog.dom.DomHelper</a></span></div>
        <div class="entryOverview">DOM helper, used for DOM creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line654">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.makeBuiltInToolbarButton"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">makeBuiltInToolbarButton<span class="args">(<span class="arg">command</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <div class="fullType"><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>
      </div>


     <div class="entryOverview">
       Creates an instance of a subclass of {@link goog.ui.Button} for the given
{@link goog.editor.Command}, or null if no built-in button exists for the
command.  Note that this function is only intended to create built-in
buttons; please don&#39;t try to hack it!
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">command</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Editor command ID.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <div class="fullType"><span class="type"><a href="class_goog_dom_DomHelper.html">goog.dom.DomHelper</a></span></div>
        <div class="entryOverview">DOM helper, used for DOM creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>&nbsp;
            Toolbar button (null if no built-in button exists for the command).
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line328">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.makeDefaultToolbar"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">makeDefaultToolbar<span class="args">(<span class="arg">elem</span>,&nbsp;<span class="arg">opt_isRightToLeft</span>)</span>
        </span>
        &#8658; <div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Toolbar.html">goog.ui.Toolbar</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a {@link goog.ui.Toolbar} containing a default set of editor
toolbar buttons, and renders it into the given parent element.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">elem</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/DOM/Element">Element</a></span></div>
        <div class="entryOverview">Toolbar parent element.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_isRightToLeft</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>
        <div class="entryOverview">Whether the editor chrome is right-to-left; defaults to the directionality of the toolbar parent element.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Toolbar.html">goog.ui.Toolbar</a></span></div>&nbsp;
            Default editor toolbar, rendered into the given parent element.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line271">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.makeToolbar"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">makeToolbar<span class="args">(<span class="arg">items</span>,&nbsp;<span class="arg">elem</span>,&nbsp;<span class="arg">opt_isRightToLeft</span>)</span>
        </span>
        &#8658; <div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Toolbar.html">goog.ui.Toolbar</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a {@link goog.ui.Toolbar} containing the specified set of
toolbar buttons, and renders it into the given parent element.  Each
item in the {@code items} array must either be a
{@link goog.editor.Command} (to create a built-in button) or a subclass
of {@link goog.ui.Control} (to create a custom control).
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">items</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="class_goog_ui_Control.html">goog.ui.Control</a></span>&gt;</div>
        <div class="entryOverview">Toolbar items; each must be a {@link goog.editor.Command} or a {@link goog.ui.Control}.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">elem</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/DOM/Element">Element</a></span></div>
        <div class="entryOverview">Toolbar parent element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_isRightToLeft</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span></div>
        <div class="entryOverview">Whether the editor chrome is right-to-left; defaults to the directionality of the toolbar parent element.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Toolbar.html">goog.ui.Toolbar</a></span></div>&nbsp;
            Editor toolbar, rendered into the given parent element.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line297">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.rtlButtonFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">rtlButtonFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button&#39;s caption element.  This button
is designed to be used as the RTL button.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Button ID; must equal a {@link goog.editor.Command} for built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <div class="fullType"><span class="type">goog.ui.ControlContent</span></div>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">CSS class name(s) to apply to the caption element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <div class="fullType"><span class="type"><a href="class_goog_ui_ButtonRenderer.html">goog.ui.ButtonRenderer</a></span></div>
        <div class="entryOverview">Button renderer; defaults to {@link goog.ui.ToolbarButtonRenderer} if unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <div class="fullType"><span class="type"><a href="class_goog_dom_DomHelper.html">goog.dom.DomHelper</a></span></div>
        <div class="entryOverview">DOM helper, used for DOM creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line416">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.setLocale"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">setLocale<span class="args">(<span class="arg">locale</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Sets the locale for the font names.  If not set, defaults to &#39;en-us&#39;.
Used only for default creation of font names name.  Must be set
before font name menu is created.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">locale</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Locale to use for the toolbar font names.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line129">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.undoRedoButtonFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">undoRedoButtonFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button&#39;s caption element.  Designed to
be used to create undo and redo buttons.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Button ID; must equal a {@link goog.editor.Command} for built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <div class="fullType"><span class="type">goog.ui.ControlContent</span></div>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
        <div class="entryOverview">CSS class name(s) to apply to the caption element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <div class="fullType"><span class="type"><a href="class_goog_ui_ButtonRenderer.html">goog.ui.ButtonRenderer</a></span></div>
        <div class="entryOverview">Button renderer; defaults to {@link goog.ui.ToolbarButtonRenderer} if unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <div class="fullType"><span class="type"><a href="class_goog_dom_DomHelper.html">goog.dom.DomHelper</a></span></div>
        <div class="entryOverview">DOM helper, used for DOM creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType"><span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span></div>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line451">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>



  <h2>Global Properties</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.BUTTONS_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">BUTTONS_</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span>!</span><span class="type">goog.ui.editor.ButtonDescriptor</span>&gt;</div>
     </div>


     <div class="entryOverview">
       Built-in toolbar button descriptors.  See
{@link goog.ui.editor.DefaultToolbar.buttons_} for details on button
descriptor objects.  This array is processed at JS parse time; each item is
inserted into {@link goog.ui.editor.DefaultToolbar.buttons_}, and the array
itself is deleted and (hopefully) garbage-collected.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line836">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.ui.editor.ButtonDescriptor"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.</span><span class="entryName">ButtonDescriptor</span>
        : <div class="fullType"><span class="type">{command: stri</span></div>
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line824">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.DEFAULT_BUTTONS"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">DEFAULT_BUTTONS</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;</div>
     </div>


     <div class="entryOverview">
       A set of built-in buttons to display in the default editor toolbar.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line360">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.DEFAULT_BUTTONS_RTL"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">DEFAULT_BUTTONS_RTL</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>&gt;</div>
     </div>


     <div class="entryOverview">
       A set of built-in buttons to display in the default editor toolbar when
the editor chrome is right-to-left (BiDi mode only).
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line381">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.FONTS_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">FONTS_</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type">{caption:string</span>,<span class="type"> value:string}</span>&gt;</div>
     </div>


     <div class="entryOverview">
       Common font descriptors for all locales.  Each descriptor has the following
attributes:
<ul>
<li>{@code caption} - Caption to show in the font menu (e.g. &#39;Tahoma&#39;)
<li>{@code value} - Value for the corresponding &#39;font-family&#39; CSS style
(e.g. &#39;Tahoma, Arial, sans-serif&#39;)
</li></li></ul>
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line52">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.FONT_SIZES_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">FONT_SIZES_</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type">{caption:string</span>,<span class="type"> value:number}</span>&gt;</div>
     </div>


     <div class="entryOverview">
       Font size descriptors, each with the following attributes:
<ul>
<li>{@code caption} - Caption to show in the font size menu (e.g. &#39;Huge&#39;)
<li>{@code value} - Value for the corresponding HTML font size (e.g. 6)
</li></li></ul>
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line184">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.FORMAT_OPTIONS_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">FORMAT_OPTIONS_</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type">{caption:string</span>,<span class="type"> command:string}</span>&gt;</div>
     </div>


     <div class="entryOverview">
       Format option descriptors, each with the following attributes:
<ul>
<li>{@code caption} - Caption to show in the menu (e.g. &#39;Minor heading&#39;)
<li>{@code command} - Corresponding {@link goog.dom.TagName} (e.g.
&#39;H4&#39;)
</li></li></ul>
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line229">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.I18N_FONTS_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">I18N_FONTS_</span>
        : <div class="fullType"><span>!</span><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>.&lt;<span>!</span><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type">{caption:strin</span>&gt;,<span class="type"> value:string}></span>&gt;</div>
     </div>


     <div class="entryOverview">
       Locale-specific font descriptors.  The object is a map of locale strings to
arrays of font descriptors.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line74">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.buttons_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">buttons_</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>.&lt;<span>!</span><span class="type">goog.ui.editor.ButtonDescriptor</span>&gt;</div>
     </div>


     <div class="entryOverview">
       Map of {@code goog.editor.Command}s to toolbar button descriptor objects,
each of which has the following attributes:
<ul>
<li>{@code command} - The command corresponding to the
button (mandatory)
<li>{@code tooltip} - Tooltip text (optional); if unspecified, the button
has no hover text
<li>{@code caption} - Caption to display on the button (optional); if
unspecified, the button has no text caption
<li>{@code classes} - CSS class name(s) to be applied to the button&#39;s
element when rendered (optional); if unspecified, defaults to
&#39;tr-icon&#39;
plus &#39;tr-&#39; followed by the command ID, but without any leading &#39;+&#39;
character (e.g. if the command ID is &#39;+undo&#39;, then {@code classes}
defaults to &#39;tr-icon tr-undo&#39;)
<li>{@code factory} - factory function used to create the button, which
must accept {@code id}, {@code tooltip}, {@code caption}, and
{@code classes} as arguments, and must return an instance of
{@link goog.ui.Button} or an appropriate subclass (optional); if
unspecified, defaults to
{@link goog.ui.editor.DefaultToolbar.makeToggleButton},
since most built-in toolbar buttons are toggle buttons
<li>(@code queryable} - Whether the button&#39;s state should be queried
when updating the toolbar (optional).
</li></li></li></li></li></li></ul>
Note that this object is only used for creating toolbar buttons for
built-in editor commands; custom buttons aren&#39;t listed here.  Please don&#39;t
try to hack this!
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line814">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.locale_"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">locale_</span>
        : <div class="fullType"><span class="type"><a href="http://www.google.com/url?sa=D&q=https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span></div>
     </div>


     <div class="entryOverview">
       Default locale for font names.
     </div>

  </td>


  <td class="view-code">
     <a href="closure_goog_ui_editor_defaulttoolbar.js.source.html#line120">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>



      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Directory editor</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">File Reference</h2>
            <div id="sideFileIndex" rootPath="closure/goog" current="ui/editor/defaulttoolbar.js"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
